package md.mru.transfer.optimized.domain;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Entity
@Table(name = "family_members", schema = "c##mru_optimized")
public class FamilyMember implements Serializable {

    private static final long serialVersionUID = 7121086124468729390L;

    @Id
    @Column(name = "id", unique = true, nullable = false, precision = 10, scale = 0)
    private long id;

    @Column(name = "family_relation_id")
    private long familyRelation;

    @Column(name = "name", length = 60)
    private String name;

    @Temporal(TemporalType.DATE)
    @Column(name = "birth_date", length = 7)
    private Date birthDate;

    @Column(name = "folder_id", precision = 10, scale = 0)
    private Long folder;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getFamilyRelation() {
        return familyRelation;
    }

    public void setFamilyRelation(long familyRelation) {
        this.familyRelation = familyRelation;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getBirthDate() {
        return birthDate;
    }

    public void setBirthDate(Date birthDay) {
        this.birthDate = birthDay;
    }

    public Long getFolder() {
        return folder;
    }

    public void setFolder(Long folder) {
        this.folder = folder;
    }
}


